
import { JsonUtil } from "db://app-game/core/utils/JsonUtil";

export class TableSkillList {
    static TableName: string = "SkillList";

    public data: any;

    init(id: number) {
        var table = JsonUtil.get(TableSkillList.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 名称 */
    get name(): string {
        return this.data.name;
    }
    /** 详情 */
    get description(): string {
        return this.data.description;
    }
    /** 等级上限 */
    get maxLevel(): number {
        return this.data.maxLevel;
    }
    /** 释放成本 */
    get releaseCost(): any {
        return this.data.releaseCost;
    }
    /** 释放材料成本(物品Id和数量) */
    get itemCost(): any {
        return this.data.itemCost;
    }
    /** 冷却时长(s) */
    get cdTime(): number {
        return this.data.cdTime;
    }
    /** 最大蓄力等级 */
    get maxChargeLevel(): number {
        return this.data.maxChargeLevel;
    }
    /** 蓄力阶段数值 */
    get maxChargeTime(): any {
        return this.data.maxChargeTime;
    }
    /** 动画名称 */
    get animName(): string {
        return this.data.animName;
    }
    /** 预制件 */
    get prefabPath(): string {
        return this.data.prefabPath;
    }
}
    